package com.ssm.mapper;

import com.ssm.pojo.Score;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreMapper {
    //查询所有数据
    List selectAll();
    //根据id来查询数据
    Score selectById(int id);
    //插入一条数据
    int insertOneData(Score score);
    //根据id删除一条数据
    void deleteById(int id);
    //根据id更新一条数据
    int updateById(@Param("score") int score, @Param("id") int id);

}
